---
title: IORedis
---

This example demonstrates how to setup chat history storage using the `RedisByteStore` `BaseStore` integration.

## Setup

```bash npm
npm install @langchain/community @langchain/core ioredis
```

## Usage

import IoredisStorage from "/snippets/javascript-integrations/examples/stores/ioredis_storage.mdx";

<IoredisStorage />

## Related

- [Key-value store conceptual guide](/oss/concepts/key_value_stores)
